//
//  LJP_DetailsHeadView.m
//  God_is_a_Girl
//
//  Created by 李继鹏 on 15/9/30.
//  Copyright (c) 2015年 呸. All rights reserved.
//

#import "LJP_DetailsHeadView.h"

@implementation LJP_DetailsHeadView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.cancle = [UIButton buttonWithType:UIButtonTypeCustom];
        self.collect = [UIButton buttonWithType:UIButtonTypeCustom];
        self.share = [UIButton buttonWithType:UIButtonTypeCustom];
        self.cancle.frame = CGRectMake(20, 29, 25, 25);
        self.share.frame = CGRectMake([UIScreen mainScreen].bounds.size.width - 50, 29, 25, 25);
        self.collect.frame = CGRectMake([UIScreen mainScreen].bounds.size.width - 100, 29, 25, 25);
        [self.cancle setBackgroundImage:[UIImage imageNamed:@"back"] forState:UIControlStateNormal];
        [self.collect setBackgroundImage:[UIImage imageNamed:@"collection"] forState:UIControlStateNormal];
        [self.collect setBackgroundImage:[UIImage imageNamed:@"hadcollection"] forState:UIControlStateSelected];
        [self.share setBackgroundImage:[UIImage imageNamed:@"share"] forState:UIControlStateNormal];
        [self addSubview:self.collect];
        [self addSubview:self.cancle];
        [self addSubview:self.share];
        self.backgroundColor = [UIColor colorWithRed:1.000 green:0.970 blue:0.858 alpha:1.000];
    }
    return self;
}

@end
